package org.jeecg.modules.farming.technology.service.impl;

import org.jeecg.modules.farming.news.mapper.NewsPraiseMapper;
import org.jeecg.modules.farming.technology.entity.TecPraise;
import org.jeecg.modules.farming.technology.mapper.TecPraiseMapper;
import org.jeecg.modules.farming.technology.service.ITecPraiseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 科技咨询-点赞表
 * @Author: jeecg-boot
 * @Date:   2020-12-14
 * @Version: V1.0
 */
@Service
public class TecPraiseServiceImpl extends ServiceImpl<TecPraiseMapper, TecPraise> implements ITecPraiseService {

    @Autowired
    private TecPraiseMapper praiseMapper;

    @Override
    public TecPraise getOneByOpenIdAndCommentId(String loginUserId, String id) {
        return praiseMapper.getOneByOpenIdAndCommentId(loginUserId,id);
    }
}
